home *** CD-ROM | disk | FTP | other *** search
- {$A+,B-,D-,E-,F-,G-,I-,L-,N-,O-,P-,Q-,R-,S+,T-,V+,X+,Z-}
- {$APPTYPE CONSOLE}
- program AnalWord;
- var
- IndexFile: Text;
- Str: ShortString;
- Words,MaxLen: Integer;
- begin
- Assign(IndexFile,'wordlist');
- Reset(IndexFile);
- Words := 0;
- MaxLen := 0;
- while not eof(IndexFile) do
- begin
- Inc(Words);
- readln(IndexFile,Str);
- if Length(Str) > MaxLen then MaxLen := Length(Str)
- end;
- Close(IndexFile);
- writeln(Words,' words of max. ',MaxLen,' length...')
- end.
-
-